FROM anolis-registry.cn-zhangjiakou.cr.aliyuncs.com/openanolis/node:18.17.1-23-minimal
WORKDIR /app
COPY . /app
RUN npm config set registry https://registry.npmmirror.com
RUN sudo npm install pnpm -g
RUN pnpm install
RUN pnpm build:share
RUN pnpm build:release
EXPOSE 3000

CMD ["pnpm","start:release"]